
public class DLLNode<T> implements IDLLNode<T> {

	//instance variables
	private DLLNode<T> next;
	private DLLNode<T> prev;
	private T nodeData;

	
	//default constructor
	public DLLNode(){
		next=null;
		prev=null;
		nodeData=null;
	}
	
	//overloaded constructor
	public DLLNode(T value, DLLNode<T> successor){
		nodeData=value;
		next=successor;
	}
	//accessors
	public DLLNode<T> getNext(){
		return next;
	}
	public DLLNode<T> getPrev(){
		return prev;
	}
	public T getNodeData(){
		return nodeData;
	}
	//mutators
	public void setNext(DLLNode<T> newNext){
		next=newNext;
	}
	public void setPrev(DLLNode<T> newPrev){
		prev=newPrev;
	}
	public void setNodeData(T what){
		nodeData=what;
	}
	
}